<%@page import="java.text.SimpleDateFormat"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title></title>
</head>
<body>
   <c:set var="status" value="dan"></c:set>
   if:
   <c:if test="${status=='warning'}">
        危险
   </c:if>
   <c:if test="${status!='warning'}">
        正常
   </c:if>
   
   <br>
   choose:
   <c:choose>
     <c:when test="${status=='dan'}">
    dangerous
    </c:when>
     <c:when test="${status=='warning'}">
      warning
     </c:when>
     <c:otherwise>
      normal
      </c:otherwise>
   </c:choose>
</body>
</html>
